package jsj.mynet;

import java.net.DatagramSocket;
import java.net.SocketException;

public class MyUdpDemo {

	public static void main(String[] args) throws Exception {
		DatagramSocket dSend = new DatagramSocket();
		DatagramSocket dReceive = new DatagramSocket(10086);
		MySendThread st = new MySendThread(dSend);
		MyReceiveThread rt = new MyReceiveThread(dReceive);
		Thread send = new Thread(st);
		Thread receive = new Thread(rt);
		send.start();
		receive.start();

	}

}
